import http from '../utils/request';

// 查询用户个人信息
export const getUserInfo = (params) => {
    return http.get('/user/getUserInfo', params, {
        'content-type': 'application/x-www-form-urlencoded'
    })
}

// 登录
export const login = (params) => {
    return http.post('/user/login', params)
}

// 退出
export const quit = (params) => {
    return http.post('/user/quit', params)
}

// 更新账号信息（头像、昵称）
export const updateClientUser = (params) => {
    return http.post('/user/updateClientUser', params)
}
